/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package uit.ejb.dae.phong;

import java.rmi.RemoteException;
import javax.ejb.EJBObject;
import javax.sql.rowset.WebRowSet;
import uit.ejb.dto.PhongDTO;

/**
 *
 * @author Restart
 */
public interface PhongDAERemote extends EJBObject {

    boolean kiemTraTrung(PhongDTO phong) throws RemoteException;

    boolean phong_Insert(PhongDTO phong) throws RemoteException;

    boolean phong_Update(PhongDTO phong) throws RemoteException;

    boolean phong_Delete(String id) throws RemoteException;

    WebRowSet phong_GetByAll() throws RemoteException;

    WebRowSet phong_GetById(String id) throws RemoteException;

    WebRowSet phong_GetByTop(String top, String where, String order) throws RemoteException;

    void phong_UpdateStatus(String id, String status) throws RemoteException;
}
